package com.emip.bean;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "T_Device")
public class DeviceBean implements Serializable {
	@Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="S_BASEINFO_ID_GENE")
    @SequenceGenerator(name="S_BASEINFO_ID_GENE",sequenceName="S_BASEINFO_ID", allocationSize = 1)
	private int id;
	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "MTypeID")
	private MonitorTypeBean monitorType;
	@Column(name="deviceType")
	private String deviceType ;
	@Column(name="devicename")
	private String devicename ;
	@Column(name="deviceDisplayName")
	private String deviceDisplayName ;
	@Column(name="deviceImageUrl")
	private String deviceImageUrl ;
	@Column(name="instructionCode")
	private String instructionCode ;
	@Column(name="dWordSeq")
	private int dWordSeq ;
	@Column(name="bitSeq")
	private int bitSeq ;
	@Column(name="statusValue")
	private double statusValue ;
	@Column(name="statDesc")
	private String statDesc ;
	@Column(name="statImageUrl")
	private String statImageUrl ;
	@Column(name="controllFlag")
	private int controllFlag ;
	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "alarmFlag")
	private AlarmConfigBean alarmConfig ;
	@Column(name="alarmContent")
	private String alarmContent ;
	@Column(name="readtime")
	private Calendar readtime ;
	@Column(name="remark")
	private String remark ;
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
	public void setMonitorType(MonitorTypeBean monitorType) {
		this.monitorType = monitorType;
	}
	public MonitorTypeBean getMonitorType() {
		return monitorType;
	}
	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}
	public String getDeviceType() {
		return deviceType;
	}
	public void setDevicename(String devicename) {
		this.devicename = devicename;
	}
	public String getDevicename() {
		return devicename;
	}
	public void setDeviceDisplayName(String deviceDisplayName) {
		this.deviceDisplayName = deviceDisplayName;
	}
	public String getDeviceDisplayName() {
		return deviceDisplayName;
	}
	public void setDeviceImageUrl(String deviceImageUrl) {
		this.deviceImageUrl = deviceImageUrl;
	}
	public String getDeviceImageUrl() {
		return deviceImageUrl;
	}
	public void setInstructionCode(String instructionCode) {
		this.instructionCode = instructionCode;
	}
	public String getInstructionCode() {
		return instructionCode;
	}
	public void setdWordSeq(int dWordSeq) {
		this.dWordSeq = dWordSeq;
	}
	public int getdWordSeq() {
		return dWordSeq;
	}
	public void setBitSeq(int bitSeq) {
		this.bitSeq = bitSeq;
	}
	public int getBitSeq() {
		return bitSeq;
	}
	public void setStatusValue(double statusValue) {
		this.statusValue = statusValue;
	}
	public double getStatusValue() {
		return statusValue;
	}
	public void setStatDesc(String statDesc) {
		this.statDesc = statDesc;
	}
	public String getStatDesc() {
		return statDesc;
	}
	public void setStatImageUrl(String statImageUrl) {
		this.statImageUrl = statImageUrl;
	}
	public String getStatImageUrl() {
		return statImageUrl;
	}
	public void setControllFlag(int controllFlag) {
		this.controllFlag = controllFlag;
	}
	public int getControllFlag() {
		return controllFlag;
	}
	public void setAlarmContent(String alarmContent) {
		this.alarmContent = alarmContent;
	}
	public String getAlarmContent() {
		return alarmContent;
	}
	public void setReadtime(Calendar readtime) {
		this.readtime = readtime;
	}
	public Calendar getReadtime() {
		return readtime;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getRemark() {
		return remark;
	}
	public void setAlarmConfig(AlarmConfigBean alarmConfig) {
		this.alarmConfig = alarmConfig;
	}
	public AlarmConfigBean getAlarmConfig() {
		return alarmConfig;
	}
}
